<template>
  <div>
    <Head/>
    <left/>
    <div style="position: absolute;top: 60px;left: 200px">
      <table>
        <tr>
          <td>id</td>
          <td>名称</td>
          <td>操作</td>
        </tr>
        <tr v-for="i in yewu" :key="i.id">
          <td>{{ i.id }}</td>
          <td>{{ i.name }}</td>
          <td>
            <router-link :to="{path:'/add_shenq',query:{'id':i.id}}">配置</router-link>
            <router-link :to="{path:'/show_shenq',query:{'id':i.id}}">申请</router-link>

          </td>
        </tr>
      </table>





    </div>

  </div>
</template>

<script>
import maxios from "@/http/axios";
import head from "@/components/head";
import left from "@/components/left";


export default {
  components: {
    'Head': head,
    'left': left
  },
  name: "add_work",
  data() {
    return {
      yewu: [],



    }
  },
  methods: {

    getyewu() {
      maxios('/work/work', 'get').then(res => {
        if (res.code == 200) {
          this.yewu = res.list
        }
      })
    },

  },
  mounted() {
    this.getyewu()
  }
}
</script>

<style scoped>

</style>